package spring.mybatis_plus.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user_info")//显示指定表明
public class UserInfo {
    @TableId(type = IdType.AUTO)//表示id是主键，AUTO是自增
    private Integer id;
    private String username;
//    @TableField("password")//显示指定列名
    private String password;
    private Integer age;
    private Integer gender;
    private String phone;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
}
